﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using XRPGLibrary;
using XRPGLibrary.SpriteClasses;

namespace myRPG.GameScreens.Combat
{
    public class FightingPlayer:Fighter
    {
        public FightingPlayer(Texture2D img, Dictionary<AnimationKey,Animation> animations)
            : base(img, animations)
        {
        }

        public Rectangle Weapon
        {
            get
            {
                Rectangle rec;
                if (state == FightState.Attack)
                {
                    rec = new Rectangle((int)position.X, (int)position.Y, Width, Height);
                    return rec;
                }
                else
                {
                    rec = new Rectangle(-2, -2, 1, 1);
                }
                return rec;
            }
        }


    }
}
